package Base;

//父类：电子设备属性初始化
public class Electronics {
    private int weight;//重量
    private int price;//价格
    private int powerout;//耗电量
    private String maker;//制造商

    public Electronics() {
    }//无参构造

    public Electronics(int weight, int price, int powerout, String maker) {
        this.weight = weight;
        this.price = price;
        this.powerout = powerout;
        this.maker = maker;
    }//有参构造

    public int getWeight() {
        return weight;
    }

    public void setWeirht(int weight) {
        this.weight = weight;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getPowerout() {
        return powerout;
    }

    public void setPowerout(int powerout) {
        this.powerout = powerout;
    }

    public String getMaker() {
        return maker;
    }

    public void setMaker(String maker) {
        this.maker = maker;
    }
}
